#pragma once

#include<iostream>
#include<string>
#include<vector>
#include<functional>
using func_t=std::function<void()>;

std::vector<func_t> tasks;
void Download()
{
    std::cout<<"我是一个download任务"<<std::endl;
}

void Mysql()
{
    std::cout<<"我是一个MySQL任务"<<std::endl;
}

void Sync()
{
    std::cout<<"我是一个数据刷新同步的任务"<<std::endl;
}

void Log()
{
    std::cout<<"我是一个日志保存任务"<<std::endl;
}

class Init
{
public:
    Init()
    {
        tasks.push_back(Download);
        tasks.push_back(Mysql);
        tasks.push_back(Sync);
        tasks.push_back(Log);
    }
};
Init ginit;
